<template>
  <div class="el-table__body-wrapper">
    <!--    查询条件-->
    <div class="search-form search_form" v-loading='loadingPage'>
      <el-form :model="searchForm" size="mini" label-position="right" class="demo-form-inline" label-width="110px">
        <el-row :gutter="20">
          <el-col :span="4">
            <el-form-item label="申诉部门：" prop="deptId">
              <el-select v-model="searchForm.deptId" placeholder="请选择部门"
              >
                <el-option
                  v-for="item  in  deptList"
                  :key="item.name"
                  :label="item.name"
                  :value="item.id">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>

          <el-col :span="4">
            <el-form-item label="月份：" prop="createTime">
              <el-date-picker
                v-model="searchForm.createTime"
                type="month"
                value-format="yyyy-MM"
                placeholder="选择月">
              </el-date-picker>
            </el-form-item>
          </el-col>

          <el-col :span="4">
            <el-form-item label="状态：" prop="deptId">
              <el-select v-model="searchForm.status" placeholder="请选择">
                <el-option
                  v-for="item in stateOptions"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>

          <el-col :span="8" style="text-align:center; ">
            <el-button size="mini" type="primary" @click="searchBtn">查询</el-button>
            <el-button size="mini" @click="emptyClick">清空</el-button>


            <el-button size="mini" type="success" v-hasPermi="['/performanceoffice/offinfojixiao']"
                       @click="importClick">初始化绩效导入
            </el-button>

            <el-button v-hasPermi="['/performanceoffice/officesheet']" type="warning" size="mini" @click="testClick">计算生成等级分配
            </el-button>

            <el-button v-hasPermi="['/performanceoffice/performanceofficesheet']" type="info" size="mini"
                       @click="selectClick">
              查看图表
            </el-button>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <div>
      <el-col :span="8" style="text-align:left; margin-bottom:10px ;">
        <el-button v-hasPermi="['/performanceoffice/issued']" size="mini" type="primary" @click="issuedFormIn()"
                   :disabled="this.checkedArr.length<=0">下发
        </el-button>
        <el-button v-hasPermi="['/performanceoffice/commit']" size="mini" type="success" @click="submit()"
                   :disabled="this.checkedArr.length<=0">提交
        </el-button>
        <el-button v-hasPermi="['/performanceoffice/export']" size="mini" type="info" @click="exportForm"
                   :disabled="this.checkedArr.length <= 0">导出
        </el-button>
      </el-col>
    </div>
    <el-table
      :data="tableData"
      border
      v-loading="loading"
      @selection-change="handleSelectionChange"
      @sort-change="getOrder"
      :row-key="bindRowKeys"
      style="width: 100%;">
      <el-table-column
        type="selection"
        header-align="center"
        align="center"
        reserve-selection="reserve-selection"
        width="50">
      </el-table-column>
      <el-table-column
        prop="deptName"
        header-align="center"
        align="center"
        label="部门名称"
        width="130">
      </el-table-column>
      <el-table-column
        prop="calculateNum"
        header-align="center"
        align="center"
        label="计算人数">
      </el-table-column>
      <el-table-column
        prop="implementOrder"
        header-align="center"
        align="center"
        label="执行命令">
      </el-table-column>
      <el-table-column
        prop="principalNum"
        header-align="center"
        align="center"
        label="负责人">
      </el-table-column>
      <el-table-column
        prop="ordinaryNum"
        header-align="center"
        align="center"
        label="普通员工">
      </el-table-column>
      <el-table-column
        prop="manageNum"
        header-align="center"
        align="center"
        label="管理技术刚">
      </el-table-column>
      <el-table-column
        prop="lastMonthBalanceAAdd"
        header-align="center"
        align="center"
        label="上个月结余A+">
      </el-table-column>
      <el-table-column
        prop="lastMonthBalanceA"
        header-align="center"
        align="center"
        label="上个月结余A">
      </el-table-column>
      <el-table-column
        prop="lastMonthBalanceBAdd"
        header-align="center"
        align="center"
        label="上个月结余B+">
      </el-table-column>
      <el-table-column
        prop="lastMonthBalanceC"
        header-align="center"
        align="center"
        label="上个月结余C">
      </el-table-column>
      <el-table-column
        prop="thisMonthCountAAdd"
        header-align="center"
        align="center"
        label="本月计算数A+">
      </el-table-column>
      <el-table-column
        prop="thisMonthCountA"
        header-align="center"
        align="center"
        label="本月计算数A">
      </el-table-column>
      <el-table-column
        prop="thisMonthCountBAdd"
        header-align="center"
        align="center"
        label="本月计算数B+">
      </el-table-column>
      <el-table-column
        prop="thisMonthCountC"
        header-align="center"
        align="center"
        label="本月计算数C">
      </el-table-column>
      <el-table-column
        prop="canAllocationAAdd"
        header-align="center"
        align="center"
        label="本月可分配人数A+">
      </el-table-column>
      <el-table-column
        prop="canAllocationA"
        header-align="center"
        align="center"
        label="本月可分配人数A">
      </el-table-column>
      <el-table-column
        prop="canAllocationBAdd"
        header-align="center"
        align="center"
        label="本月可分配人数B+">
      </el-table-column>
      <el-table-column
        prop="canAllocationC"
        header-align="center"
        align="center"
        label="本月可分配人数C">
      </el-table-column>
      <el-table-column
        prop="peopleAAboveNum"
        header-align="center"
        align="center"
        label="其中管理技术人员A 以上数量"
        width="120">
      </el-table-column>
      <el-table-column
        prop="thisMonthBalanceAAdd"
        header-align="center"
        align="center"
        label="本月结余尾数A+">
      </el-table-column>
      <el-table-column
        prop="thisMonthBalanceA"
        header-align="center"
        align="center"
        label="本月结余尾数A">
      </el-table-column>
      <el-table-column
        prop="thisMonthBalanceBAdd"
        header-align="center"
        align="center"
        label="本月结余尾数B+">
      </el-table-column>
      <el-table-column
        prop="thisMonthBalanceC"
        header-align="center"
        align="center"
        label="本月结余尾数C">
      </el-table-column>
      <el-table-column
        prop="monthAllocationAAdd"
        header-align="center"
        align="center"
        label="本月实际分配人数A+"
        width="120">
      </el-table-column>
      <el-table-column
        prop="monthAllocationA"
        header-align="center"
        align="center"
        label="本月实际分配人数A"
        width="120">
      </el-table-column>
      <el-table-column
        prop="monthAllocationBAdd"
        header-align="center"
        align="center"
        label="本月实际分配人数B+"
        width="120">
      </el-table-column>
      <el-table-column
        prop="monthAllocationC"
        header-align="center"
        align="center"
        label="本月实际分配人数C"
        width="120">
      </el-table-column>

      <el-table-column
        prop="totalScore"
        header-align="center"
        align="center"
        label="总系数"
        width="120">
      </el-table-column>
      <el-table-column
        prop="overallRating"
        header-align="center"
        align="center"
        label="实际实数"
        width="120">
      </el-table-column>
      <el-table-column
        prop="state"
        header-align="center"
        align="center"
        label="状态">
        <template slot-scope="scope">
          <span style="color: #13ce66;font-weight:bold" v-if="scope.row.state === 0">未审核</span>
          <span style="color: #ff4949; ;font-weight:bold" v-if="scope.row.state === 1">已审核</span>
          <span style="color: #13ce66; ;font-weight:bold" v-if="scope.row.state === 2">已提交</span>
        </template>
      </el-table-column>
      <el-table-column
        prop="createTime"
        header-align="center"
        align="center"
        label="时间"
        width="150">
        <template slot-scope="scope">
          {{ new Date(scope.row.createTime).toLocaleDateString().replaceAll('/', '-') }}
        </template>
      </el-table-column>
      <el-table-column
        fixed="right"
        header-align="center"
        align="center"
        width="130"
        label="操作">
        <template slot-scope="scope">
          <el-button v-hasPermi="['/performanceoffice/translate']" type="text" size="small"
                     @click="reviewSubmit(scope.row)">审批
          </el-button>
          <el-button v-hasPermi="['/performanceoffice/showpicture']" type="text" size="small"
                     @click="selectPeopleOne(scope.row)">人员绩效分布图
          </el-button>
        </template>
      </el-table-column>
    </el-table>
    <div class="progress_lok_page">
      <page
        :hidden="tableData && tableData.length === 0"
        :total="total"
        :page.sync="pageNo"
        :limit.sync="pageSize"
        @pagination="handlePageChange"
      />
    </div>

    <el-dialog
      :title="'查看图表'"
      :close-on-click-modal="false"
      :visible.sync="visibleForm">
      <el-col :span="16" style="text-align:right;">
        <div class="div-left">
          <span class="demonstration">时间</span>
          <el-date-picker
            v-model="timeValue"
            type="month"
            @change="selectTime"
            value-format="yyyy-MM"
            placeholder="选择月">
          </el-date-picker>
        </div>
      </el-col>
      <el-col :span="16">
        <div style="height:100%;width:100%">
          <div id="myMiddleChart" :style="{width: '350px',height: '350px'}"></div>
        </div>
      </el-col>
    </el-dialog>
    <el-dialog
      :title="'人员图表'"
      :close-on-click-modal="false"
      :visible.sync="visiblePeopleForm">
      <el-col :span="16" style="text-align:right;">
        <div class="div-left">
          <span class="demonstration">时间</span>
          <el-date-picker
            v-model="timePeopleValue"
            type="month"
            @change="selectPeopleTime"
            value-format="yyyy-MM"
            placeholder="选择月">
          </el-date-picker>
        </div>
      </el-col>
      <el-col :span="16">
        <div style="height:100%;width:100%">
          <div id="peopleChart" :style="{width: '500px',height: '500px'}"></div>
        </div>
      </el-col>
    </el-dialog>

    <el-dialog title="导入" :close-on-click-modal="false" :visible.sync="importWinVisible">
      <el-form label-width="100px" v-loading="importLoading">
        <el-row :gutter="10">
          <el-col :xs="24">
            <el-upload class="upload-demo" ref="upload"
                       :multiple="false" :file-list="fileList" :auto-upload="false"
                       :on-change="fileChange"
                       action="/hr-xc-human-resources-perform-manage/generator/performanceoffice/importPerformance"
                       :on-success="handleUploadSuccess">
              <el-button type="danger" @click="downTemplate">下载模版</el-button>
              <el-button slot="trigger" type="primary">选取文件</el-button>
              <el-button style="margin-left: 10px;" type="success" @click="submitUpload">上传并导入</el-button>
              <div slot="tip" class="el-upload__tip">只能上传xlsx/xls文件</div>
            </el-upload>
          </el-col>
        </el-row>
      </el-form>
    </el-dialog>
  </div>
</template>

<script>
  import axios from 'axios'
  import { Encrypt } from '../../utils/cryptoAES'
  import { AesDecrypt } from '../../utils/AesDecrypt'

  export default {
    data() {
      return {
        options: [{
          value: 0,
          label: '驳回'
        }, {
          value: 1,
          label: '同意'
        }],
        stateOptions: [{
          value: null,
          label: '全部'
        }, {
          value: 0,
          label: '未审核'
        }, {
          value: 1,
          label: '已审核'
        }, {
          value: 2,
          label: '已提交'
        }],

        deptList: [],
        timeValue: '',
        timePeopleValue: '',
        visibleForm: false,
        visiblePeopleForm: false,
        visible: false,
        peopleDeptName: '',
        tableData: [],
        loadingPage: true,
        loading: true,
        currentPage: 0,
        pageNo: 1,
        pageSize: 10,
        total: 0,
        checkedArr: [],//要导出的数据数组
        ids: [],
        searchForm: {
          //   deptName: '',//部门
          deptId: '',// 部门id
          appealUser: '',//申诉人
          status: null,
          createTime: ''
        },

        senheForm: {
          auditUserId: '',//审核人id
          auditUsername: '',// 审核人
          auditResult: 0,//审核结果
          auditOpinion: ''
        },
        // 人员
        auditUserList: [],
        importWinVisible: false,
        fileList: [],
        importLoading: false,
        senheRule: {

          auditUsername: [
            { required: true, message: '审核人不能为空', trigger: 'blur' }
          ],
          auditResult: [
            { required: true, message: '审核结果不能为空', trigger: 'blur' }
          ],
          auditOpinion: [
            { required: true, message: '审核意见不能为空', trigger: 'blur' }
          ]
        }
      }
    },

    created() {
      this.getList ()
      this.getDeptList ()

    },
    methods: {

      // 获取列表
      getList() {
        var uu = {
          page: this.pageNo,
          pageSize: this.pageSize,
          deptId: this.searchForm.deptId,//部门名称
          state: this.searchForm.status,//状态
          createTime: this.searchForm.createTime
        }
        var jsonString = JSON.stringify (uu)
        var yy = Encrypt (jsonString)
        var encodedString = encodeURIComponent (yy)
        axios ({
          method: 'post',
          url: '/hr-xc-human-resources-perform-manage/generator/performanceoffice/list',
          data: encodedString
        }).then (({ data }) => {
          if (data && data.code === '00000') {
            var data = AesDecrypt (data.result)
            this.tableData = data.result.content
            this.total = data.result.total
            this.loading = false
            this.loadingPage = false
          } else {
            this.loading = false
            this.loadingPage = false
            this.$message.error ('查询绩效办公室失败')
            this.tableData = []
          }
        }).catch (error => {
          this.$message.error ('服务器访问异常，请从新登录')
        })
      },
// 导出
      async exportForm() {
        this.loadingPage = true
        this.ids = []
        if (this.checkedArr.length != 0) {
          this.checkedArr.forEach (item => {
            this.ids.push (item.id)
          })
        } else {
          this.ids = []
        }
        axios ({
          method: 'post',
          responseType: 'blob',
          url: '/hr-xc-human-resources-perform-manage/generator/performanceoffice/export',
          data: {
            ids: this.ids,
            deptName: this.searchForm.deptName//部门
          }
        }).then (({ data }) => {
          if (data.size) {
            const downloadElement = document.createElement ('a')
            const href = window.URL.createObjectURL (data) // 创建下载的链接
            downloadElement.href = href
            downloadElement.download = decodeURI ('绩效办公室.xls') // 下载后文件名
            document.body.appendChild (downloadElement)
            downloadElement.click () // 点击下载
            document.body.removeChild (downloadElement) // 下载完成移除元素
            window.URL.revokeObjectURL (href) // 释放掉blob对象
            this.loadingPage = false
            // this.$my_message.success ('导出成功')
            this.$message.success ('导出成功')
          }
        }).catch (error => {
          this.$message.error ('服务器访问异常，请从新登录')
        })
      },
      // 搜索
      searchBtn() {
        this.loading = true
        this.pageNo = 1
        this.getList ()
      },
      // 清空
      emptyClick() {
        this.searchForm.deptId = ''//部门Id
      },

      /** 点击分页触发的事件 */
      handlePageChange(pageInfo) {
        this.loading = true
        this.pageNo = pageInfo.page
        this.pageSize = pageInfo.limit
        this.getList ()
      },
      bindRowKeys(row) {
        return row.id
      },
      // 多选
      handleSelectionChange(value) {
        this.checkedArr = value
        // element表格多选第一页选中往后翻一页全选，再回到第一页会再次选中第一页的数据，所以需要手动去重
        let hash = {}
        this.checkedArr = this.checkedArr.reduce ((preVal, curVal) => {
          hash[curVal.id] ? '' : hash[curVal.id] = true && preVal.push (curVal)
          return preVal
        }, [])
        // console.log(this.checkedArr,'this.checkedArr')
      },
      getOrder(param) {
        this.loading = true
        if (param.order === 'ascending') {
          this.searchForm.sort = 'asc'
          this.searchForm.sortField = param.prop
        } else if (param.order === 'descending') {
          this.searchForm.sort = 'desc'
          this.searchForm.sortField = param.prop
        } else {
          this.searchForm.sort = ''
          this.searchForm.sortField = ''
        }
        //  this.getList ()
      },
      // 下发
      issuedFormIn() {
        this.ids = []
        if (this.checkedArr.length != 0) {
          this.checkedArr.forEach (item => {
            this.ids.push (item.id)
          })
        } else {
          this.ids = []
        }
        axios ({
          url: `/hr-xc-human-resources-perform-manage/generator/performanceoffice/issuedOffice`,
          method: 'post',
          data: {
            'ids': this.ids
          }
        }).then (({ data }) => {
          if (data && data.code === '00000') {
            if (data.result) {
              this.$message ({
                message: '操作成功',
                type: 'success',
                duration: 1500,
                onClose: () => {
                  this.visible = false
                  //  this.$emit ('refreshDataList')
                  this.refresh ()
                }
              })
            } else {
              this.$message.error (data.message)
            }
          } else {
            this.$message.error (data.message)
          }
        }).catch (error => {
          this.$message.error ('服务器访问异常，请从新登录')
        })

      },
      // 提交
      submit() {
        this.ids = []
        var aa = true
        if (this.checkedArr.length != 0) {
          this.checkedArr.forEach (item => {
            if (item.state !== 1) {
              aa = false
            }
            this.ids.push (item.id)
          })
        } else {
          this.ids = []
        }
        if (!aa) {
          this.$message.warning ('已审核数据，才可提交')
          return
        }
        axios ({
          url: `/hr-xc-human-resources-perform-manage/generator/performanceoffice/commitOffice`,
          method: 'post',
          data: {
            'ids': this.ids
          }
        }).then (({ data }) => {
          if (data && data.code === '00000') {
            if (data.result) {
              this.$message ({
                message: '操作成功',
                type: 'success',
                duration: 1500,
                onClose: () => {
                  this.visible = false
                  // this.$emit ('refreshDataList')
                  this.refresh ()
                }
              })
            } else {
              this.$message.error ('提交失败')
            }

          } else {
            this.$message.error (data.msg)
          }
        }).catch (error => {
          this.$message.error ('服务器访问异常，请从新登录')
        })

      },
      // 审核
      reviewSubmit(row) {
        this.$router.push ({
          path: '/performanceMenu/appeal',
          query: {
            deptId: row.deptId
          }
        })
      },
      // test 数据
      testClick() {
        axios ({
          url: `/hr-xc-human-resources-perform-manage/generator/performanceoffice/createMonthlyPerformance`,
          method: 'get'
        }).then (({ data }) => {
          if (data && data.code === '00000') {
            if (data.result) {
              this.$message ({
                message: '操作成功',
                type: 'success',
                duration: 1500,
                onClose: () => {
                  this.visible = false
                  // this.$emit ('refreshDataList')
                  this.refresh ()
                }
              })
            } else {
              this.$message.error (data.message)
            }
          } else {
            this.$message.error (data.message)
          }
        }).catch (error => {
          this.$message.error ('服务器访问异常，请从新登录')
        })
      },
      getUsers() {
        this.auditUserList = []
        axios ({
          method: 'post',
          url: '/hr-xc-human-resources-perform-manage/generator/iscuser/list'
        }).then (({ data }) => {
            if (data && data.code === '00000') {
              data.result.forEach (v => {
                this.auditUserList.push (v)
              })
            }
          }
        ).catch (error => {
          this.$message.error ('服务器访问异常，请从新登录')
        })
      },
      // 查看图表
      selectClick() {
        this.visibleForm = true
        var today = new Date ()
        var year = today.getFullYear ()//获取年份
        var month = today.getMonth () + 1//获取月份
        this.timeValue = year + '-' + month
        // 根据时间查询
        this.selectScone (this.timeValue)
      },
      // 部门
      drawLine(xlist, ylist) {
        this.$nextTick (() => {
          // 基于准备好的dom，初始化echarts实例
          var myChart = this.$echarts.init (document.getElementById ('myMiddleChart'))
          // 指定图表的配置项和数据
          var option = {
            title: {
              text: '部门平均得分'
            },
            tooltip: {},
            legend: {
              data: ['得分']
            },
            xAxis: {
              data: xlist,
              axisLabel: {
                //  X 坐标轴标签相关设置
                interval: 0,
                rotate: '10'
              }
            },
            yAxis: {},
            series: [{
              name: '得分',
              barWidth: 35,
              itemStyle: {
                color: '#7B997E',
                normal: {
                  label: {
                    show: true, //开启显示
                    position: 'top', //顶部显示
                    textStyle: {
                      //数值样式
                      color: 'black',
                      fontSize: 12
                    }
                  }
                }
              },
              type: 'bar',
              data: ylist
            }],
            toolbox: {//echart保存为图片
              show: true,
              feature: {
                mark: {
                  show: true
                },
                restore: {
                  show: true
                },
                saveAsImage: {
                  show: true,
                  pixelRatio: 1,
                  title: '保存为图片',
                  type: 'png',
                  lang: ['点击保存']
                }
              }
            }
          }
          // 使用刚指定的配置项和数据显示图表。
          myChart.setOption (option)
        })
      },
      // 选中时间
      selectTime(val) {
        this.selectScone (val)
      },
      // 查询得分

      selectScone(val) {
        axios ({
          data: {
            'date': val
          },
          method: 'post',
          url: '/hr-xc-human-resources-perform-manage/generator/performanceappraisal/queryAvgByDate'
        }).then (({ data }) => {
            if (data !== null) {
              //var data = AesDecrypt (data)
              this.drawLine (data.x, data.y)
            } else {
              this.$message.error ('其他月份目前没有！')
            }
          }
        ).catch (error => {
          this.$message.error ('服务器访问异常，请从新登录')
        })
      },

      // 跳转图表页面
      selectPeopleOne(row) {
        this.$router.push ({
          path: '/performanceMenu/personnelscore',
          query: {
            deptName: row.deptName
          }
        })
      },

      selectPeopleTime(val) {
        this.selectPeopleScone (val, this.peopleDeptName)
      },

      // 刷新
      refresh() {
        this.getList ()
      },
      getDeptList() {
        axios ({
          method: 'post',
          url: '/hr-xc-human-resources-perform-manage/generator/torgdept/queryAllDeptIdAndName'
        }).then (({ data }) => {
          if (data && data.code === '00000') {
            var data = AesDecrypt (data.result)
            this.deptList = data

          }
        }).catch (error => {
          this.$message.error ('服务器访问异常，请从新登录')
        })
      },
      importClick() {
        this.importWinVisible = true
        this.isUpload = false
      },
      // 判断是否选择文件
      fileChange(file, fileList) {
        if (file) {
          this.isUpload = true
        }
      },
      // 上传
      submitUpload() {
        var _this = this
        if (!_this.isUpload) {
          this.$message.warning ('请先选取文件')
          return
        }
        _this.isUpload = false
        _this.importLoading = true
        _this.$refs.upload.submit ()
      },

      handleUploadSuccess(response, file, fileList) {
        this.importLoading = false
        this.$refs.upload.clearFiles ()
        if (response.code === '00000') {
          this.isUpload = false
          this.importWinVisible = false
          this.$message.info ('导入成功')
          this.reloadTable ()
        } else {
          this.$message.warning (response.message)
        }
      },
      // 下载模版
      downTemplate() {
        axios ({
          url: '/hr-xc-human-resources-perform-manage/generator/performanceoffice/downloadTemp',
          method: 'post',
          responseType: 'blob'
        }).then (({ data }) => {
          if (data.size) {
            const downloadElement = document.createElement ('a')
            const href = window.URL.createObjectURL (data) // 创建下载的链接
            downloadElement.href = href
            downloadElement.download = decodeURI ('初始化绩效考核模版.xlsx') // 下载后文件名
            document.body.appendChild (downloadElement)
            downloadElement.click () // 点击下载
            document.body.removeChild (downloadElement) // 下载完成移除元素
            window.URL.revokeObjectURL (href) // 释放掉blob对象
            this.loadingPage = false
            // this.$my_message.success ('导出成功')
            this.$message.success ('导出成功')
          }
        }).catch (error => {
          this.$message.error ('服务器访问异常，请从新登录')
        })
      },
      // 刷新
      reloadTable() {
        // 执行刷新操作
        this.getList ()
      }

    }
  }
</script>
<style>
  .el-table__body-wrapper::-webkit-scrollbar {
    width: 8px; /*滚动条宽度*/
    height: 8px; /*滚动条高度*/
  }

  .el-table__body-wrapper::-webkit-scrollbar-track {
    border-radius: 10px; /*滚动条的背景区域的圆角*/
    -webkit-box-shadow: inset 0 0 6px rgba(238, 238, 238, 0.3);
    background-color: #eeeeee; /*滚动条的背景颜色*/
  }

  .el-table__body-wrapper::-webkit-scrollbar-thumb {
    border-radius: 10px; /*滚动条的圆角*/
    -webkit-box-shadow: inset 0 0 6px rgba(145, 143, 0143, 0.3);
    background-color: rgb(145, 143, 143); /*滚动条的背景颜色*/
  }
</style>

